package org.jeecg.modules.demo.stockmanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 股东管理
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Data
@TableName("stock_manage")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "stock_manage对象", description = "股东管理")
public class StockManage implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 股东姓名
     */
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "股东姓名")
    private String stockName;
    /**
     * 联系方式
     */
    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "联系方式")
    private String tel;
    /**
     * 股东折扣
     */
    @Excel(name = "股东折扣(折)", width = 15)
    @ApiModelProperty(value = "股东折扣")
    private Double shareholderDiscount;
    /**
     * 股本总计
     */
    @Excel(name = "股本总计(元)", width = 15)
    @ApiModelProperty(value = "股本总计")
    private Double equityTotal;
    /**
     * 股本余额
     */
    @Excel(name = "股本余额(元)", width = 15)
    @ApiModelProperty(value = "股本余额")
    private Double equityBalance;
    /**
     * 股本限额最低
     */
    @Excel(name = "股本最低限额(元)", width = 15)
    @ApiModelProperty(value = "股本限额最低")
    private Double stockLowest;
    /**
     * 分红比例
     */
    @Excel(name = "分红比例(%)", width = 15)
    @ApiModelProperty(value = "分红比例")
    private Double prorateDividends;
    /**
     * 分红比例
     */
    @Excel(name = "间接分红比例(%)", width = 15)
    @ApiModelProperty(value = "间接分红比例")
    private Double indirectProrateDividends;
    /**
     * 总分红金额
     */
    @Excel(name = "总分红(元)", width = 15)
    @ApiModelProperty(value = "总分红金额")
    private Double totalDividend;
    /**
     * 总分红金额
     */
    @Excel(name = "总分红(元)", width = 15)
    @ApiModelProperty(value = "总分红金额")
    private Double indirectDividend;

    /**
     * 已提现分红金额
     */
    @Excel(name = "已提现分红(元)", width = 15)
    @ApiModelProperty(value = "已提现分红金额")
    private Double haveWithdrawal;
    /**
     * 可提现分红金额
     */
    @Excel(name = "可提现分红(元)", width = 15)
    @ApiModelProperty(value = "可提现分红金额")
    private Double canWithdrawal;
    /**
     * 入股时间
     */
    @Excel(name = "入股时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入股时间")
    private Date inTime;
    /**
     * 股东管家
     */
    @Excel(name = "股东管家", width = 15)
    @ApiModelProperty(value = "股东管家")
    private String shareholdersHousekeeper;
    /**
     * 股东管家ID
     */
    @ApiModelProperty(value = "股东管家ID")
    private String shareholdersHousekeeperId;
    /**
     * 股东会员数
     */
    @Excel(name = "股东会员数", width = 15)
    @ApiModelProperty(value = "股东会员数")
    private Integer memberQty;
    /**
     * 股东会员数
     */
    @Excel(name = "间接股东会员数", width = 15)
    @ApiModelProperty(value = "间接股东会员数")
    private Integer indirectMemberQty;

    /**
     * 带动营业额
     */
    @Excel(name = "带动营业额", width = 15)
    @ApiModelProperty(value = "带动营业额")
    private Double driveTurnover;

    /**
     * 股东会员提成比例
     */
    @ApiModelProperty(value = "股东会员提成比例")
    private Double memberRatio;
    /**
     * 股东提成比例
     */
    @ApiModelProperty(value = "股东提成比例")
    private Double shareholdersRatio;


    /**
     * 股东拓客卡
     */
    @ApiModelProperty(value = "股东拓客卡")
    private String stockCard;
    /**
     * 发卡数量
     */
    @ApiModelProperty(value = "发卡数量")
    private Integer cardNum;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    private String storeId;

    //关联会员
    //private String staffId;
    private String memberId;
    private String groupId;
}
